<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/cortop.jsp"%>
<%@ taglib uri="/struts-bean" prefix="bean"%>
<%@ taglib uri="/struts-html" prefix="html"%>
<%@ taglib uri="/struts-logic" prefix="logic"%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>基本资料页面</title>
		<link href="/css/login.css" rel="stylesheet" type="text/css" />
	</head>
	<script language="javascript">
//删除全部职位
function delall(){
   if(confirm("确定要删除吗?")){
   window.open("/com/corpor/manage/issuepo.do?method=delall","_blank");
   }
}
//删除职位
function dodel(href){
   if(confirm("确定要删除吗?")){
   window.open(href,"_blank");
   }
}
//添加职位
function doadd(){

   window.open("/com/corpor/manage/addpo.do","_blank");
}
</script>
	<body>
		<html:form action="/com/corpor/manage/issuepo" method="post"
			target="_blank">
			<div align="center">
				<table width="97%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
					<tr>
						<td class="titlebg" colspan="4">
							职位管理
						</td>
					</tr>

					<tr>
						<td class="mtdtitle1">
							编辑
						</td>
						<td class="mtdtitle1">
							职位名称
						</td>
						<td class="mtdtitle1">
							发布时间
						</td>
						<td class="mtdtitle1">
							处理
						</td>
					</tr>


					<logic:empty property="positionList"
						name="com_struts_web_corpor_manage_infomanage_IssuePoForm">
						<tr>
							<td class="mthmidtext1" colspan="4">
								没有可显示的内容
							</td>
						</tr>
					</logic:empty>



					<logic:notEmpty property="positionList"
						name="com_struts_web_corpor_manage_infomanage_IssuePoForm">
						<logic:iterate id="positionbean" property="positionList"
							type="com.struts.web.corpor.manage.infomanage.PositionBean"
							name="com_struts_web_corpor_manage_infomanage_IssuePoForm">
							<tr>
								<td class="mtdtextcenterwrite">
									<a target="_blank"
										href="/com/corpor/manage/editpo.do?positionId=<bean:write name='positionbean' property='positionId'/>">修改</a>
								</td>
								<td class="mtdtextcenterwrite">
									<bean:write name="positionbean" property="positionName" />
								</td>
								<td class="mtdtextcenterwrite">
									<bean:write name="positionbean" property="issueTime" />
								</td>
								<td class="mtdtextcenterwrite">
									<a style="cursor:hand" href="#"
										onclick="dodel('/com/corpor/manage/issuepo.do?method=del&positionId=<bean:write name='positionbean' property='positionId' />')">删除</a>
								</td>
							</tr>
						</logic:iterate>
					</logic:notEmpty>


					<tr>
						<td class="mtdtitle1" colspan="4">
							<input type="button" class="tbutton" onclick="doadd()"
								value="增加" />
							<input type="button" class="tbutton" onclick="delall()"
								value="删除全部" />
						</td>
					</tr>
				</table>
			</div>
		</html:form>

	</body>
</html>
